
import {Rectangle} from "electron";




export type Controller = Record<string | symbol, any>;

export enum FirewallProfileType {
  Domain = '域',
  Private = '专用',
  Public = '公用'
}

export enum FirewallProfileEnType {
  Domain = 'domain',
  Private = 'private',
  Public = 'public'
}

export const FirewallStatusTypeMap: Record<string, string> = {
  [FirewallProfileType.Domain]: FirewallProfileEnType.Domain,
  [FirewallProfileType.Private]: FirewallProfileEnType.Private,
  [FirewallProfileType.Public]: FirewallProfileEnType.Public
}


export interface AppStore {
  mainBounds?: Rectangle;
}


export interface NetIf {
  name: string;
  desc: string;
  ipv4: string;
  metric: string;
  ifIndex: string;
  status: string;
  mac: string;
  speed: string;
  restarting?: boolean;
  toggling?: boolean;
}

export interface RouteConf {
  destination: string;
  mask: string;
  gateway: string;
  metric: string;
  ip: string;
  ifIndex: string;
}

export interface FirewallProfile {
  profile: string;
  state: boolean;
}
